package com.lb.springboot.controller;

import com.lb.springboot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: xie fei
 * @date 2020/4/16 23:15
 */
@RestController
public class HelloController {


    @Autowired
    private HelloService helloService;


    //http://localhost:8080/hello
    @GetMapping("/hello")
    public String hello() {
        String hello = helloService.hello();
        return hello;
    }
}